﻿///***************************************************************
/// 시  스  템 : Updms.Ref.Exe
/// 단위시스템 : REF
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Ref1010m_NT
/// 파  일  명 : Ref1010m_NT.cs
/// 설      명 : 활력업소관리
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2013-03-21 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;

namespace Updms.Ref.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Ref1010m_NT : Base.AppFramework.RuleBase
	{
		public Ref1010m_NT()
		{
		}

		#region GetSearchCount
		/// <summary>
		/// 검색결과 건수조회
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int GetSearchCount(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.GetSearchCount(lo_dp);
			}
		}

		#endregion

		#region SelectProcess
		/// <summary>
		/// 활력업소조회
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}

		#endregion

		#region GetShopInfoList
		/// <summary>
		/// 등록된 업소정보 조회(전체조회)
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetShopInfoList()
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.GetShopInfoList("");
			}
		}

		/// <summary>
		/// 등록된 업소정보 조회(Y : 사용여부가 Y인것, N : 사용여부가 N인것)
		/// </summary>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetShopInfoList(string ls_use_yn)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.GetShopInfoList(ls_use_yn);
			}
		}

		#endregion

		#region GetShopLocation
		/// <summary>
		/// 업소의 위치정보
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetShopLocation(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Ref_Dac_UPDMS_REF_SHOP _dac = new Dac.Ref_Dac_UPDMS_REF_SHOP())
			{
				return _dac.GetShopLocation(lo_dp);
			}
		}

		#endregion
	}
}
